package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.DataDictionary;
import cn.wolfcode.crm.domain.DataDictionaryItem;
import cn.wolfcode.crm.query.DictionaryQueryObject;

import java.util.List;
import java.util.Map;

public interface DataDictionaryItemMapper {
    int deleteByPrimaryKey(Long id);

    int insert(DataDictionaryItem record);

    DataDictionaryItem selectByPrimaryKey(Long id);

    List<DataDictionaryItem> selectAll(Long parentId);

    int updateByPrimaryKey(DataDictionaryItem record);

    DataDictionaryItem selectByName(String name);

    void deleteByParentId(Long id);

    List<Map<String,String>> selectAllLevel(Long levelId);
}